package com.peas.platform.module.icims.budget.project.adapter.repository.po;

import java.math.*;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.framework.mybatisplus.po.BasePo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.JdbcType;
import javax.validation.constraints.*;

// 二级项目申报年度
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "`tbl_budget_project_two_year`")
public class BudgetProjectTwoYearPo extends BasePo {

    // 二级项目申报表ID
    // 外键
    @Comment(value = "二级项目申报表ID")
    @TableField(value = "`project_two_id`", jdbcType = JdbcType.BIGINT)
    private Long projectTwoId;

    // 年度
    @Comment(value = "年度")
    @Size(max = 4, message = "年度不能超过4个字符")
    @TableField(value = "`year`", jdbcType = JdbcType.VARCHAR)
    private String year;

    // 单位申报数
    @Comment(value = "单位申报数")
    @TableField(value = "`apply_fund`", jdbcType = JdbcType.DECIMAL)
    private BigDecimal applyFund;

    // 部门审核数
    @Comment(value = "部门审核数")
    @TableField(value = "`approve_fund`", jdbcType = JdbcType.DECIMAL)
    private BigDecimal approveFund;

    // 预算审核数
    @Comment(value = "预算审核数")
    @TableField(value = "`budget_fund`", jdbcType = JdbcType.DECIMAL)
    private BigDecimal budgetFund;

    // 纳入预算金额
    @Comment(value = "纳入预算金额")
    @TableField(value = "`bring_fund`", jdbcType = JdbcType.DECIMAL)
    private BigDecimal bringFund;

    // 三保目录
    // 下拉框选择
    @Comment(value = "三保目录")
    @Size(max = 20, message = "三保目录不能超过20个字符")
    @TableField(value = "`third_catalog`", jdbcType = JdbcType.VARCHAR)
    private String thirdCatalog;

    // 热点分类
    // 下拉框选择
    @Comment(value = "热点分类")
    @Size(max = 20, message = "热点分类不能超过20个字符")
    @TableField(value = "`hot_catalog`", jdbcType = JdbcType.VARCHAR)
    private String hotCatalog;

    // 是否划拨三保专户项目
    // 1是，0否
    @Comment(value = "是否划拨三保专户项目")
    @Size(max = 20, message = "是否划拨三保专户项目不能超过20个字符")
    @TableField(value = "`according`", jdbcType = JdbcType.VARCHAR)
    private String according;

    // 备注
    @Comment(value = "备注")
    @TableField(value = "`remark`", jdbcType = JdbcType.CLOB)
    private String remark;

}
